//
//  MyKeepAllTableViewCell.m
//  lmq
//
//  Created by apple on 2017/3/9.
//  Copyright © 2017年 yuanxin. All rights reserved.
//

#import "MyKeepAllTableViewCell.h"
#import "MyCollectionShoppingModel.h"
#import "UIImageView+WebCache.h"


@implementation MyKeepAllTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModelShopping:(MyCollectionShoppingModel *)modelShopping{

//    NSString *strPic = @"http://lmq.quyum.cn/";
//    
//    NSString *str = [strPic stringByAppendingString:modelShopping.shoppic];
//    
    NSString *urlWare=modelShopping.shoppic;
    NSString *str=manage(AP_HOST, urlWare);
    NSString *strUrl = [str stringByReplacingOccurrencesOfString:@"\\" withString:@"/"];
    
    [self.shoppicImage sd_setImageWithURL:[NSURL URLWithString:strUrl]];
    self.shopName.text = modelShopping.shop_name;
    NSString *str2 = @"¥";
    self.priceLabel.text = [str2 stringByAppendingString:modelShopping.price];
//    self.priceLabel.text = modelShopping.price;
    self.timeLabel.hidden = YES;
    


}

@end
